package com.baomidou.ant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Notice implements Serializable {
    private static final long serialVersionUID = 1L;
    //Id
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String noticeText;
    /**
     * 公告插图路径
     */
    private String noticeImage;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 结束时间
     */
    private LocalDateTime endTime;
    /**
     * 状态，0代表进行时，1代表过期
     */
    private String status;
}
